package 注解;
//压制所有经警告
@SuppressWarnings("all")
public class Test1 extends   Object {
    @Override
    public String toString() {
        return super.toString();
    }
    @Deprecated
    public   void  f(){
        System.out.println("方法过时");
    }

    public static void main(String[] args) {
        Test1 test1 = new Test1();
        test1.f();
    }
}
